-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove the unstable Float trait #50933
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
5e991f8
to
2208cf1
Compare
src/libcore/num/dec2flt/rawfp.rs
Outdated
+ Debug | ||
+ LowerExp | ||
+ Mul<Output=Self> | ||
+ Div<Output=Self> | ||
+ Neg<Output=Self> | ||
where | ||
Self: Float<Bits = <Self as RawFloat>::RawBits> | ||
{ | ||
const INFINITY: Self; | ||
const NAN: Self; | ||
const ZERO: Self; | ||
|
||
/// Same as `Float::Bits` with extra traits. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since Float
is being removed, might be worth updating this doc to be more descriptive
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, fixed.
src/libcore/num/dec2flt/rawfp.rs
Outdated
@@ -56,22 +56,28 @@ impl Unpacked { | |||
/// Should **never ever** be implemented for other types or be used outside the dec2flt module. | |||
/// Inherits from `Float` because there is some overlap, but all the reused methods are trivial. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as before "inherits from Float
" is no longer true
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’ve now removed this sentence.
Following up to rust-lang#49896 and rust-lang#50629. Fixes rust-lang#32110. E0689 is weird.
I have no context |
@bors: r+ |
📌 Commit b825477 has been approved by |
☀️ Test successful - status-appveyor, status-travis |
Following up to #49896 and #50629. Fixes #32110.